package com.pianzhu.blockchainemr.pojo;

import lombok.Data;
import java.util.*;
import java.time.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;

/**
 * 电子病历文书表
 * 对应数据库表: emr_documents
 * 数据库: blockchain_emr
 * 自动生成 - 请勿手动修改
 */
@Data
public class EmrDocuments {

    /**
     * 
     * 字段类型: bigint
     */
    private Integer docId;

    /**
     * 就诊ID
     * 字段类型: varchar
     */
    private String visitId;

    /**
     * 01-入院记录,02-病程记录,03-出院小结,04-门诊病历
     * 字段类型: varchar
     */
    private String docType;

    /**
     * 文书标题
     * 字段类型: varchar
     */
    private String docTitle;

    /**
     * 书写医生
     * 字段类型: bigint
     */
    private Integer writerDoctorId;

    /**
     * 书写时间
     * 字段类型: datetime
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.time.LocalDateTime writerTime;

    /**
     * 0-草稿,1-已签名,2-已归档
     * 字段类型: enum
     */
    private String signatureStatus;

    /**
     * 数字签名
     * 字段类型: varchar
     */
    private String digitalSignature;

    /**
     * 区块链存证哈希
     * 字段类型: varchar
     */
    private String blockchainTxHash;

    /**
     * 
     * 字段类型: int
     */
    private Integer version;

    /**
     * 上一版本ID
     * 字段类型: bigint
     */
    private Long previousVersionId;

    /**
     * 
     * 字段类型: datetime
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.time.LocalDateTime createdTime;

    private String reportResult;
    private String pastHistory;
    private String physicalExam;
    private  String chiefComplaint;
    private String initialDiagnosis;
    private String historyOfPresentIllness;
    private Integer hospitalId;
}
